package ru.payment.wm.impl.response;

import ru.payment.wm.Trust;
import ru.payment.wm.X15ListResponse;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * User: sergey
 * Date: 14.04.2009
 * Time: 20:47:42
 */
public class X15ListResponseImpl extends AbstractWebMoneyResponse implements X15ListResponse {

  private static final long serialVersionUID = -5053712927646749293L;
  private List<Trust> trustList = new ArrayList<Trust>();

  public X15ListResponseImpl() {
  }

  public List<Trust> getTrustList() {
    return trustList;
  }

  @Override
  public String toString() {
    String sz = super.toString()+"\n-- trust list ["+getTrustList().size()+"] --";
    for (Trust t : trustList) {
      sz = sz + "\n" + t + "\n---";
    }
    return sz;
  }

}
